#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QMessageBox>
#include <QStandardItemModel>

namespace Ui {
class Widget;
}

class WidgetPrivate;
class Widget : public QWidget
{
    Q_OBJECT
    //定义Interface名称为com.deepin.dbus.myep
    Q_CLASSINFO("D-Bus Interface", "com.deepin.dbus.myep")
    Q_DECLARE_PRIVATE(Widget)

public:
    explicit Widget(QWidget *parent = nullptr);
    ~Widget();

public Q_SLOTS:
    void checkTemperature(const QString &name, int age, const QString &id, const QString &address, double dTemperature);

Q_SIGNALS:
    void signalTemperatureIsOk(bool isOk);

private:
    Ui::Widget *ui;
    WidgetPrivate *d_ptr;
};

#endif // WIDGET_H
